package crudfx.util.resources;

import java.io.*;
import javax.swing.*;
public class ResourceLoader {

    public static InputStream stream(String s) {
        InputStream i = null;
        try {
            i = ResourceLoader.class.getResourceAsStream(s);
        } catch (Throwable t) {
            t.printStackTrace();
        }
        return i;
    }
    public static ImageIcon imageIcon(String s) {
        ImageIcon i=new ImageIcon(ResourceLoader.class.getResource(s));
        return i;
    }
}
